bdd37127f8c493140b9106601c02d42ad1755f71,clc/modules/cluster-manager/src/main/java/com/eucalyptus/network/NetworkGroupManager.java,NetworkGroupManager,create,#CreateSecurityGroupType#,120
Before Change
reply.setGroupId( group.getGroupId() );
return reply;
} catch ( final Exception ex ) {
throw new EucalyptusCloudException( "CreateSecurityGroup failed because: " + Exceptions.causeString( ex ), ex );
}
}
After Change
reply.setGroupId( group.getGroupId() );
return reply;
} catch ( final Exception ex ) {
String cause = Exceptions.causeString( ex );
if ( cause.contains( "DuplicateMetadataException" ) )
throw new EucalyptusCloudException( "The security group '" + groupName + "' already exists" );
else
throw new EucalyptusCloudException( "CreateSecurityGroup failed because: " + cause, ex );
}
}